package start.from.scratch.love.user.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import start.from.scratch.love.user.entity.UserDO;
import start.from.scratch.love.user.manager.UserManager;

import java.util.List;

@RestController
@RequestMapping(value = "/management/user/user/")
public class UserController {

    @Autowired
    UserManager userManager;

    @RequestMapping("list")
    public List<UserDO> list() {
        return userManager.list();
    }

}
